package com.example.demo.controller;

import com.example.demo.publish.FanoutPublish;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fanout")
public class FanoutController {
    @Autowired
    FanoutPublish fanoutPublish;

    @RequestMapping("/test")
    public void test() {
        fanoutPublish.fanoutPublish("广播消息测试");
    }

}
